<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;

#[Constants]
class ErrorCode extends AbstractConstants
{
    #[Message("获取失败")]
    public const SERVER_ERROR = 1;

    #[Message("操作失败")]
    public const OPERATION_ERROR=1;

    #[Message("用户不存在")]
    public const USER_NOT_EXIST=1;

    #[Message("登录失败")]
    public const LOGIN_ERROR=0;

    #[Message("token不能为空")]
    public const TOKEN_NOT_EMPTY=0;
}
